|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPER.rover.control.RoverState
PER.rover.ActionConstants
Allows the constants representing rover status to be translated into more descriptive strings. Also contains some of the constants used as Action return values and allows errors to be logged in the StatsLog.
Action.getReturnValue()
,
RoverState
Field Summary | |
static int |
NO_MOTION_DETECTED
Did not detect any motion |
static int |
NO_ROCK
Can't find a rock that should be there |
static int |
SMTP_FAILED
Couldn't talk to the SMTP server |
static int |
UNKNOWN_ERROR
I don't know what happened |
static int |
WRONG_STAYTON_VERSION
The version of code running on the Stayton is out of date |
Constructor Summary | |
ActionConstants()
|
Method Summary | |
static java.lang.String |
getErrorText(int err)
Gives a description of an error code. |
static boolean |
isFatalError(int error)
Returns true if the error is fatal to rover operations, false if it is not. |
static void |
logErrorStats(int err)
Notes the error in the StatsLog. |
Methods inherited from class PER.rover.control.RoverState |
getDist, getPan, getPosition, getRange, getRangeCM, getRawVoltage, getRealVoltage, getStatus, getStatusMessage, getTilt, isTerminationCondition, parsePacket, setCrabAngle, setPan, setPosition, setSign, setStatus, setTilt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int WRONG_STAYTON_VERSION
public static final int SMTP_FAILED
public static final int UNKNOWN_ERROR
public static final int NO_ROCK
public static final int NO_MOTION_DETECTED
Constructor Detail |
public ActionConstants()
Method Detail |
public static java.lang.String getErrorText(int err)
err
- The error code
public static void logErrorStats(int err)
StatsLog
public static boolean isFatalError(int error)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |